package cn.mystylefree.designpatternsdemo.builder;

/**
 * @program my-project-model
 * @description:
 * @author: lee
 * @create: 2022/07/19 09:26
 */
public class ConstructorTest {
    public static void main(String[] args) {
        ComputerBuilder computerBuilder = new ComputerBuilder();
        computerBuilder.installDisplayer("显示器");
        computerBuilder.installKeybord("键盘");
        computerBuilder.installMainUnit("主机");
        computerBuilder.installMouse("鼠标");

        Computer computer = computerBuilder.getComputer();
        System.out.println(computer);
    }
}
